package com.yonyou.ucf.mdf.app.isvdxq.other.model;

import com.alibaba.fastjson.JSONObject;
import com.yonyou.ucf.mdf.app.isvdxq.other.entity.UnitEnity;

public class UnitBean extends UnitEnity {
    private NameBean name;

    public NameBean getName() {
        return name;
    }

    public void setName(Object name) {
        NameBean obj = new NameBean();
        if(name instanceof String) {
            obj.setZh_CN(name.toString());
        }
        else{
            obj = JSONObject.parseObject( JSONObject.toJSONString(name), NameBean.class );
        }
        this.name = obj;
        this.setUnitName(obj.getZh_CN());
    }

    private String ytenant;

    public String getYtenant() {
        return ytenant;
    }

    public void setYtenant(String ytenant) {
        this.ytenant = ytenant;
    }
}
